package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Classify implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * 主键ID       db_column: id 
     */	
	private String id;
    /**
     * 类别名称       db_column: item_name
     */
	private String itemName;
    /**
     * 父节点编码       db_column: parent_id
     */
	private String parentId;
    /**
     * 父节点名称       db_column: parent_name
     */
	private String parentName;
    /**
     * 排序号       db_column: order_num
     */
	private Integer orderNum;
    /**
     * 图片地址       db_column: classify_picture_path
     */
	private String classifyPicturePath;
    /**
     * 备注       db_column: remark
     */
	private String remark;
    /**
     * 有效状态(默认为1 有效 0 无效）       db_column: active_flag
     */
	private String activeFlag;
    /**
     * 创建人ID       db_column: create_by
     */
	private String createBy;
    /**
     * 创建人       db_column: create_by_name
     */
	private String createByName;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by
     */
	private String modifiedBy;
    /**
     * 修改人       db_column: modified_by_name
     */
	private String modifiedByName;
    /**
     * 修改时间       db_column: modified_date
     */
	private java.util.Date modifiedDate;

	private Integer level;
	//columns END

	public Classify(){
	}

	public Classify(
		String id
	){
		this.id = id;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setItemName(String value) {
		this.itemName = value;
	}

	public String getItemName() {
		return this.itemName;
	}
	public void setParentId(String value) {
		this.parentId = value;
	}

	public String getParentId() {
		return this.parentId;
	}
	public void setParentName(String value) {
		this.parentName = value;
	}

	public String getParentName() {
		return this.parentName;
	}
	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}
	public void setClassifyPicturePath(String value) {
		this.classifyPicturePath = value;
	}

	public String getClassifyPicturePath() {
		return this.classifyPicturePath;
	}
	public void setRemark(String value) {
		this.remark = value;
	}

	public String getRemark() {
		return this.remark;
	}
	public void setActiveFlag(String value) {
		this.activeFlag = value;
	}

	public String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(String value) {
		this.createBy = value;
	}

	public String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(String value) {
		this.createByName = value;
	}

	public String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(String value) {
		this.modifiedBy = value;
	}

	public String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(String value) {
		this.modifiedByName = value;
	}

	public String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Classify == false) return false;
		if(this == obj) return true;
		Classify other = (Classify)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

